package cn.ljy.quicksnip.model.query;

import cn.ljy.quicksnip.model.QsTimeBlock;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.sql.Time;
import java.util.Date;

@ApiModel(value="时间段查询查询类")
@Data
@NoArgsConstructor
public class QsTimePeriodQuery extends QsTimeBlock {
    @ApiModelProperty(value = "创建时间起始范围", example = "2023-01-01 12:00:00")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTimeQueryOfBegin;

    @ApiModelProperty(value = "创建时间截止范围", example = "2023-01-01 12:00:00")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTimeQueryOfEnd;

    @ApiModelProperty(value = "时间段名称模糊查询", example = "8:00")
    private String periodNameLike;

    @ApiModelProperty(value = "开始时间范围起始值", example = "08:00:00")
    private Time startTimeQueryOfBegin;

    @ApiModelProperty(value = "开始时间范围结束值", example = "09:00:00")
    private Time startTimeQueryOfEnd;

    @ApiModelProperty(value = "结束时间范围起始值", example = "08:30:00")
    private Time endTimeQueryOfBegin;

    @ApiModelProperty(value = "结束时间范围结束值", example = "09:30:00")
    private Time endTimeQueryOfEnd;

    @ApiModelProperty(value = "时间块类别ID", example = "1")
    private QsTimeBlock qsTimeBlock;
}
